package com.framework.loippi.dao;

import com.framework.loippi.entity.TPreferential;
import com.framework.loippi.mybatis.dao.GenericDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO - T preferential(优惠比例记录表)
 *
 * @author wmj
 * @version 2.0
 */
public interface TPreferentialDao extends GenericDao<TPreferential, Long> {
    List<TPreferential> findListByPage(Object parameter);

    Long deletes(Object parameter);

    TPreferential findByUidGid(@Param("uid") Long uid, @Param("gid") Long gid);

    void updateByUidAndGid(TPreferential preferential);

    void insertRecord(TPreferential preferential);

}
